using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DONTHUOC: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DONTHUOCFields
		{
			DonThuocId,
			Manhanvien,
			Ngaylap,
			Tenmay,
			Xuathang,
			Ngayban,
			Printed,
			PrintedDate,
            SID,
            LoiDan,
            KetLuanBenh,
            DateSID,
            TenKH,
            DiaChiKH,
            TuoiKH,
            GioiTinhKH,
            DienThoaiKH
		}
		#endregion

		#region Data Members

			int _donThuocId;
			string _manhanvien;
			DateTime? _ngaylap;
			string _tenmay;
			bool? _xuathang;
			DateTime? _ngayban;
			byte? _printed;
			DateTime? _printedDate;
            string _SID;
            string _loiDan;
            string _ketLuanBenh;
            DateTime _dateSID;
            string _tenKH;
            string _diaChiKH;
            int _tuoiKH;
            bool _gioiTinhKH;
            string _dienThoaiKH;

		#endregion

		#region Properties

		public int  DonThuocId
		{
			 get { return _donThuocId; }
			 set
			 {
				 if (_donThuocId != value)
				 {
					_donThuocId = value;
				 }
			 }
		}

		public string  Manhanvien
		{
			 get { return _manhanvien; }
			 set
			 {
				 if (_manhanvien != value)
				 {
					_manhanvien = value;
				 }
			 }
		}

		public DateTime?  Ngaylap
		{
			 get { return _ngaylap; }
			 set
			 {
				 if (_ngaylap != value)
				 {
					_ngaylap = value;
				 }
			 }
		}

		public string  Tenmay
		{
			 get { return _tenmay; }
			 set
			 {
				 if (_tenmay != value)
				 {
					_tenmay = value;
				 }
			 }
		}

		public bool?  Xuathang
		{
			 get { return _xuathang; }
			 set
			 {
				 if (_xuathang != value)
				 {
					_xuathang = value;
				 }
			 }
		}

		public DateTime?  Ngayban
		{
			 get { return _ngayban; }
			 set
			 {
				 if (_ngayban != value)
				 {
					_ngayban = value;
				 }
			 }
		}

		public byte?  Printed
		{
			 get { return _printed; }
			 set
			 {
				 if (_printed != value)
				 {
					_printed = value;
				 }
			 }
		}

		public DateTime?  PrintedDate
		{
			 get { return _printedDate; }
			 set
			 {
				 if (_printedDate != value)
				 {
					_printedDate = value;
				 }
			 }
		}

        public string SID
        {
            get { return _SID; }
            set
            {
                if (_SID != value)
                {
                    _SID = value;
                }
            }
        }
        public string LoiDan
        {
            get { return _loiDan; }
            set
            {
                if (_loiDan != value)
                {
                    _loiDan = value;
                }
            }
        }
        public string KetLuanBenh
        {
            get { return _ketLuanBenh; }
            set
            {
                if (_ketLuanBenh != value)
                {
                    _ketLuanBenh = value;
                }
            }
        }
        public DateTime DateSID
        {
            get { return _dateSID; }
            set
            {
                if (_dateSID != value)
                {
                    _dateSID = value;
                }
            }
        }
        public string TenKH
        {
            get { return _tenKH; }
            set
            {
                if (_tenKH != value)
                {
                    _tenKH = value;
                }
            }
        }
        public string DiaChiKH
        {
            get { return _diaChiKH; }
            set
            {
                if (_diaChiKH != value)
                {
                    _diaChiKH = value;
                }
            }
        }
        public string DienThoaiKH
        {
            get { return _dienThoaiKH; }
            set
            {
                if (_dienThoaiKH != value)
                {
                    _dienThoaiKH = value;
                }
            }
        }
        public int TuoiKH
        {
            get { return _tuoiKH; }
            set
            {
                if (_tuoiKH != value)
                {
                    _tuoiKH = value;
                }
            }
        }
        public bool GioiTinhKH
        {
            get { return _gioiTinhKH; }
            set
            {
                if (_gioiTinhKH != value)
                {
                    _gioiTinhKH = value;
                }
            }
        }
		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("DonThuocId", "DonThuocId"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Manhanvien", "Manhanvien",30));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Tenmay", "Tenmay", 200));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("LoiDan", "LoiDan", 200));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenKH", "TenKH", 100));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DiaChiKH", "DiaChiKH", 200));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DienThoaiKH", "DienThoaiKH", 50));
		}

		#endregion

	}
}
